package ${location}.exception;

import ${location}.common.HttpCode;

/**
 * 异常抛出类
 *
 * @author ${author}
 */
public class Asserts {

	public static void error() {
		throw new CustomizeException(HttpCode._400_BAD_REQUEST.getMsg(), HttpCode._400_BAD_REQUEST);
	}

	public static void error(HttpCode httpCode) {
		throw new CustomizeException(httpCode.getMsg(), httpCode);
	}

	public static void error(String message) {
		throw new CustomizeException(message, HttpCode._400_BAD_REQUEST);
	}

	public static void error(HttpCode httpCode, String message) {
		throw new CustomizeException(message, httpCode);
	}
}
